package com.yantong.service;

import com.yantong.pojo.vo.DataCenterVo;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 首页数据服务
 * @author kanghaixin
 * @date 2018/10/11.20:58
 */
public interface IndexService {

    /**
     * 获取首页基础数据
     * @param centreId
     * @return
     */
    Map<String,Object> getIndexBaseInfo(Long centreId);

    /**
     *  会员新增趋势，默认查看1个月内情况
     * @param centreId
     * @return
     */
    Map<String,Object> getMemberTrend(Long centreId);

    /**
     * 会员累积趋势
     * @param centreId
     * @return
     */
    Map<String,Object> getCumulateMemberTrend(Long centreId);

    /**
     * 获取用户行为走势
     * @param centreId
     * @param targetDate
     * @return
     */
    Map<String,Object> getMemberActionTrend(Long centreId, Date targetDate);

    /**
     * 获取订单趋势
     * @param centreId
     * @return
     */
    Map<String,Object> getOrderTrend(Long centreId);


    Map<String,Object> getDataCenter(Long centreId);

    List<DataCenterVo> getMonthOrderSumList(Long centreId, String payTime);

    Map<String,Object> getTopOrderProduct(Long centreId, String payTime);


    List<DataCenterVo> getYearOrderSumList(Long centreId, String payTimeStart, String payTimeEnd);

}
